package pers.kafka;

import org.apache.kafka.common.utils.SystemTime;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import javax.annotation.PostConstruct;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class DemoApplication {

	static {
		System.out.println("===static===");
	}

	@PostConstruct
	public void init(){
		System.out.println("timer === :::" + SystemTime.SYSTEM);
	}

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
		System.err.println("=== 启动成功 ===");
	}

}
